package com.itheima.test6;

/**
 * 父优先于zi
 * 静态优先于一切
 * 构造代码块优先于构造方法
 * 静态只加载一次
 *
 */
public class Test01 {
    public static void main(String[] args) {

        Zi zi= new Zi();//BEACDF
        Zi zi2= new Zi();//ACDF
        Zi zi3= new Zi();//ACDF

    }

}
class  Fu{
    {
        System.out.println("A");
    }
    static{
        System.out.println("B");
    }
    public Fu(){
        System.out.println("C");
    }
}
class Zi extends Fu{
    {
        System.out.println("D");
    }
    static {
        System.out.println("E");
    }
    public Zi(){
        System.out.println("F");
    }
}